Moves and/or resizes a window.
WinMove ( "title", "text", x, y [, width [, height[, speed]]] )
Parameters
title | The title of the window to move/resize. See Title special definition. |
text | The text of the window to move/resize. |
x | X coordinate to move to. |
y | Y coordinate to move to. |
width | [optional] New width of the window. |
height | [optional] New height of the window. |
speed | [optional] the speed to move the windows in the range 1 (fastest) to 100 (slowest). If not defined the move is instantaneous. |
Return Value
Success: | Returns 1. |
Failure: | Returns 0 if window is not found. |
Remarks
WinMove has no effect on minimized windows, but WinMove works on hidden windows.
Related
WinActivate, WinClose, WinGetClientSize, WinGetPos, WinSetState, Default
Example
WinMove("Untitled -", "", 0, 0, 200, 200)